import request from '@/utils/request'
//  获取sku列表数据
export function reqGetSkuList(page, limit) {
    return request({
        url: `/admin/product/list/${page}/${limit}`,
        method: 'get'
    })
}

//  下架
export function reqCancel(skuId) {
    return request({
        url: `/admin/product/cancelSale/${skuId}`,
        method: 'get'
    })
}

// 上架
export function reqSale(skuId) {
    return request({
        url: `/admin/product/onSale/${skuId}`,
        method: 'get'
    })
}

// 获取sku详情

export function reqSkuById(skuId) {
    return request({
        url: `/admin/product/getSkuById/${skuId}`,
        method: 'get'
    })
}